from pymongo import *
mongo_client=MongoClient("127.0.0.1",27017)
print(mongo_client)
db=mongo_client.test
col=db.test
print(col)
col.insert_many({"name":"lily","age":"18"},{"name":"lucy","age":"20"},{"name":"mike","age":"18"},{"name":"lili","age":"19"})
col.delete_many({"age":18})
col.update_one=({"age":"18"},{"$set":{"name":"her"}})
cursor=col.find({"age":18})
for data in cursor:
    print(data)